namespace QLGT_2.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;

    public partial class tbl_NguoiDung
    {
        [Key]
        [StringLength(20)]
        public string TenDangNhap { get; set; }

        public int MaQuyen { get; set; }

        [Required]
        [StringLength(20)]
        public string MatKhau { get; set; }

        [Required]
        [StringLength(50)]
        public string Email { get; set; }

        [Required]
        [StringLength(50)]
        public string RandomPass { get; set; }

        public int KhoaTaiKhoan { get; set; }

        [ScriptIgnore]
        public virtual tbl_Quyen tbl_Quyen { get; set; }
    }
}
